﻿function Remove-TSMClientScheduleAssociation {
    <#
        .SYNOPSIS
            Remove TSM schedule association
                    
        .DESCRIPTION
            The Remove-TSMClientScheduleAssociation disassociates a node from a schedule
        
        .EXAMPLE
            Remove-TSMClientScheduleAssociation Domain1 Schedule1 Node1

        .NOTES
            Contributors:  David Seibel
            Last Revision Date: 09/03/2015
    #>
    [CmdletBinding()]
    Param(
        
        [Parameter(Position = 0, Mandatory = $true)]
        $Domain,
        
        [Parameter(Position = 1, Mandatory = $true)]
        $Schedule,

        [Parameter(Position = 2, Mandatory = $true)]
        $Node
    )

    $command = "Delete Association $Domain $Schedule $Node"

    $output = Invoke-TSMCommand -Command $command
    return $output
}